package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;
import com.atguigu.gulimall.product.vo.AttrGroupDelRelVo;
import com.atguigu.gulimall.product.vo.AttrGroupWithAttrs;
import com.atguigu.gulimall.product.vo.SpuBaseAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author tianfengbo
 * @email tianfengbo@gmail.com
 * @date 2021-06-10 16:39:35
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getRelationList(Long attrgroupId);

    void addRelation(List<AttrGroupDelRelVo> attrGroupDelRelVos);

    List<AttrGroupWithAttrs> getAttrGroupWithAttrs(Long catelogId);

    List<SpuBaseAttrVo> getAttrGroupWithSpuId(Long spuId, Long catalogId);
}

